package com.ibeeking.found.file.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName SourceGroupParam
 * @Description
 * @Author ibeeking
 * @Date 2021-02-23 15:10
 **/
@Data
public class SourceGroupParam implements Serializable {
private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { BaseValidationGroup.Update.class})
    private Long id;

	/**
	 * 上级id
	 */
    @NotNull(message = "上级id不能为空", groups = { BaseValidationGroup.Insert.class})
    private Long parentId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * -1商户 -2商管
     */
    private Integer merchantsBusiness;

	/**
	 * 分组名称
	 */
    @NotBlank(message = "分组名称不能为空", groups = { BaseValidationGroup.Insert.class})
    private String name;

    /**
     * 分组类型 1-图片，2-视频
     */
    @NotNull(message = "分组类型不能为空", groups = { BaseValidationGroup.Insert.class})
    private Integer type;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { BaseValidationGroup.Insert.class})
    private Integer sort;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 更新人
     */
    private Long modifyBy;

}
